'''
2018-1-21
fake serial module for test use
'''

class Serial():
    def __init__(self, com):
        self.ifPro = False
        self.message = 'B0.11,0.01,1.05,-3.44,-1.47,0.22,1,1,1E'
        self.promote()

    def flushInput(self): self.promote()
    def inWaiting(self): self.promote()

    def readline(self):
        self.promote()
        return self.message

    def promote(self):
        if self.ifPro: print "fake serial"

    def open(self): self.promote()
    def close(self): self.promote()

    
    
